Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packetfly module #813

Closed
wants to merge 10 commits into from
Closed

Conversation

hashalite
Copy link
Contributor

No description provided.


@EventHandler
public void onPacketSent(PacketEvent.Send event) {
PlayerMoveC2SPacket packet;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason for this field

@@ -0,0 +1,46 @@
package minegame159.meteorclient.utils.misc;

public class Timer {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please name the methods more descriptively, I have no idea what some of them mean.

return false;
}

private double[] getMotion(double speed) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this can be replaced for a method from PlayerUtils class? Not sure but it seems to do similar thing.

@MineGame159
Copy link
Member

MineGame159 commented May 23, 2021

Also it might be good to group some of the settings into more groups if it makes sense.

- Entity mixin now checks if entity is player
- Moved fields below settings
- Removed useless field from onPacketSent
- Removed other useless stuff
@hashalite
Copy link
Contributor Author

Fixed most of what you suggested, I just need to group the settings now.

- Removed getMotion method (now uses PlayerUtils.getHorizontalVelocity)
- Removed more useless stuff
- Made speeds customizable
- Categorized settings and added descriptions
@hashalite
Copy link
Contributor Author

Ok, everything should be resolved now

Copy link
Contributor Author

@hashalite hashalite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An extra ')' was added after velocity.entityPush.get()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants